package org.dromara.business.domain;

import lombok.NoArgsConstructor;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 系统消息对象 message
 *
 * @author zlj
 * @date 2024-08-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@TableName("message")
public class Message extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "message_id")
    private Long messageId;

    /**
     * 房间id
     */
    private Long roomId;

    /**
     * 发布人id( 如果是系统通知消息则为0)
     */
    private Long senderId;

    /**
     * 接受人id
     */
    private Long receiverId;

    /**
     * 消息内容
     */
    private String messageContent;

    /**
     * 1.未读 2.已读
     */
    private Integer isRead;

}
